
    google.load('visualization', '1', {packages: ['motionchart']});

    function drawVisualization() {
        var data = new google.visualization.DataTable();
          //data.addRows(6);
          data.addColumn('string', 'Project');
          data.addColumn('date', 'Date');
          data.addColumn('number', 'Consumed Budget %');
          data.addColumn('number', 'Work Progress %');
          data.addColumn('number', 'Project Size');
          data.addColumn('string', 'Department');
          //ROAD DEVELOPMENT
          data.addRows([   
            ['Mannar Thanthirimalai Road', new Date (2009,0,1), 11, 6, 250, 'Road Development'],   
            ['Mannar Thanthirimalai Road', new Date (2009,1,1), 17, 8, 250, 'Road Development'],   
            ['Mannar Thanthirimalai Road', new Date (2009,2,1), 22, 15, 250, 'Road Development'],   
            ['Mannar Thanthirimalai Road', new Date (2009,3,1), 28, 20, 250, 'Road Development'],   
            ['Mannar Thanthirimalai Road', new Date (2009,4,1), 35, 56, 250, 'Road Development'],   
            ['Mannar Thanthirimalai Road', new Date (2009,5,1), 47, 67, 250, 'Road Development'],       
          ]);  
          data.addRows([   
            ['Vavuniya Puthoor Road', new Date (2009,0,1), 20, 15, 70, 'Road Development'],   
            ['Vavuniya Puthoor Road', new Date (2009,1,1), 25, 17, 70, 'Road Development'],   
            ['Vavuniya Puthoor Road', new Date (2009,2,1), 34, 25, 70, 'Road Development'],   
            ['Vavuniya Puthoor Road', new Date (2009,3,1), 40, 40, 70, 'Road Development'],   
            ['Vavuniya Puthoor Road', new Date (2009,4,1), 55, 60, 70, 'Road Development'],   
            ['Vavuniya Puthoor Road', new Date (2009,5,1), 70, 80, 70, 'Road Development'],       
          ]);  
          data.addRows([   
            ['Pandivirichchan Andiyarpuliyankulam Road', new Date (2009,0,1), 12, 15, 70, 'Road Development'],   
            ['Pandivirichchan Andiyarpuliyankulam Road', new Date (2009,1,1), 18, 15, 70, 'Road Development'],   
            ['Pandivirichchan Andiyarpuliyankulam Road', new Date (2009,2,1), 39, 15, 70, 'Road Development'],   
            ['Pandivirichchan Andiyarpuliyankulam Road', new Date (2009,3,1), 44, 29, 70, 'Road Development'],   
            ['Pandivirichchan Andiyarpuliyankulam Road', new Date (2009,4,1), 59, 40, 70, 'Road Development'],   
            ['Pandivirichchan Andiyarpuliyankulam Road', new Date (2009,5,1), 63, 70, 70, 'Road Development'],       
          ]);  
          data.addRows([   
            ['Mahilankulam Pallamadu Road', new Date (2009,0,1), 4, 6, 275, 'Road Development'],   
            ['Mahilankulam Pallamadu Road', new Date (2009,1,1), 10, 12, 275, 'Road Development'],   
            ['Mahilankulam Pallamadu Road', new Date (2009,2,1), 15, 19, 275, 'Road Development'],   
            ['Mahilankulam Pallamadu Road', new Date (2009,3,1), 18, 25, 275, 'Road Development'],   
            ['Mahilankulam Pallamadu Road', new Date (2009,4,1), 26, 32, 275, 'Road Development'],   
            ['Mahilankulam Pallamadu Road', new Date (2009,5,1), 45, 55, 275, 'Road Development'],       
          ]);  
          data.addRows([   
            ['Puthoor Palamoddai Road', new Date (2009,0,1), 11, 6, 250, 'Road Development'],   
            ['Puthoor Palamoddai Road', new Date (2009,1,1), 17, 15, 250, 'Road Development'],   
            ['Puthoor Palamoddai Road', new Date (2009,2,1), 22, 20, 250, 'Road Development'],   
            ['Puthoor Palamoddai Road', new Date (2009,3,1), 28, 32, 250, 'Road Development'],   
            ['Puthoor Palamoddai Road', new Date (2009,4,1), 35, 46, 250, 'Road Development'],   
            ['Puthoor Palamoddai Road', new Date (2009,5,1), 47, 64, 250, 'Road Development'],       
          ]);  
          data.addRows([   
            ['Mahilankulam Pallamadhu Road', new Date (2009,0,1), 3, 6, 120, 'Road Development'],   
            ['Mahilankulam Pallamadhu Road', new Date (2009,1,1), 12, 8, 120, 'Road Development'],   
            ['Mahilankulam Pallamadhu Road', new Date (2009,2,1), 14, 15, 120, 'Road Development'],   
            ['Mahilankulam Pallamadhu Road', new Date (2009,3,1), 19, 30, 120, 'Road Development'],   
            ['Mahilankulam Pallamadhu Road', new Date (2009,4,1), 24, 44, 120, 'Road Development'],   
            ['Mahilankulam Pallamadhu Road', new Date (2009,5,1), 32, 55, 120, 'Road Development'],       
          ]);     
          //Animal Production and Health
          data.addRows([   
            ['Establishment of Dairy Village', new Date (2009,0,1), 7, 6, 25, 'Animal Production and Health'],   
            ['Establishment of Dairy Village', new Date (2009,1,1), 17, 8, 25, 'Animal Production and Health'],   
            ['Establishment of Dairy Village', new Date (2009,2,1), 22, 25, 25, 'Animal Production and Health'],   
            ['Establishment of Dairy Village', new Date (2009,3,1), 32, 40, 25, 'Animal Production and Health'],   
            ['Establishment of Dairy Village', new Date (2009,4,1), 48, 55, 25, 'Animal Production and Health'],   
            ['Establishment of Dairy Village', new Date (2009,5,1), 75, 70, 25, 'Animal Production and Health'],       
          ]);  
          data.addRows([   
            ['Renovation of Milk Sales Outlets', new Date (2009,0,1), 11, 6, 49, 'Animal Production and Health'],   
            ['Renovation of Milk Sales Outlets', new Date (2009,1,1), 17, 8, 49, 'Animal Production and Health'],   
            ['Renovation of Milk Sales Outlets', new Date (2009,2,1), 22, 15, 49, 'Animal Production and Health'],   
            ['Renovation of Milk Sales Outlets', new Date (2009,3,1), 25, 43, 49, 'Animal Production and Health'],   
            ['Renovation of Milk Sales Outlets', new Date (2009,4,1), 47, 50, 49, 'Animal Production and Health'],   
            ['Renovation of Milk Sales Outlets', new Date (2009,5,1), 60, 68, 49, 'Animal Production and Health'],       
          ]); 
          data.addRows([   
            ['Training of livestock farmers', new Date (2009,0,1), 2, 6, 65, 'Animal Production and Health'],   
            ['Training of livestock farmers', new Date (2009,1,1), 12, 8, 65, 'Animal Production and Health'],   
            ['Training of livestock farmers', new Date (2009,2,1), 22, 15, 65, 'Animal Production and Health'],   
            ['Training of livestock farmers', new Date (2009,3,1), 35, 20, 65, 'Animal Production and Health'],   
            ['Training of livestock farmers', new Date (2009,4,1), 67, 40, 65, 'Animal Production and Health'],   
            ['Training of livestock farmers', new Date (2009,5,1), 88, 70, 65, 'Animal Production and Health'],       
          ]); 
          data.addRows([   
            ['Private Animal Breeder Farm', new Date (2009,0,1), 11, 6, 25, 'Animal Production and Health'],   
            ['Private Animal Breeder Farm', new Date (2009,1,1), 23, 8, 25, 'Animal Production and Health'],   
            ['Private Animal Breeder Farm', new Date (2009,2,1), 25, 15, 25, 'Animal Production and Health'],   
            ['Private Animal Breeder Farm', new Date (2009,3,1), 28, 40, 25, 'Animal Production and Health'],   
            ['Private Animal Breeder Farm', new Date (2009,4,1), 35, 60, 25, 'Animal Production and Health'],   
            ['Private Animal Breeder Farm', new Date (2009,5,1), 47, 90, 25, 'Animal Production and Health'],       
          ]); 
          data.addRows([   
            ['Training ofArtificial Insemination', new Date (2009,0,1), 08, 6, 55, 'Animal Production and Health'],   
            ['Training ofArtificial Insemination', new Date (2009,1,1), 22, 8, 55, 'Animal Production and Health'],   
            ['Training ofArtificial Insemination', new Date (2009,2,1), 29, 15, 55, 'Animal Production and Health'],   
            ['Training ofArtificial Insemination', new Date (2009,3,1), 35, 32, 55, 'Animal Production and Health'],   
            ['Training ofArtificial Insemination', new Date (2009,4,1), 40, 45, 55, 'Animal Production and Health'],   
            ['Training ofArtificial Insemination', new Date (2009,5,1), 47, 64, 55, 'Animal Production and Health'],       
          ]); 
          data.addRows([   
            ['Establishment of bio gas unit', new Date (2009,0,1), 6, 6, 125, 'Animal Production and Health'],   
            ['Establishment of bio gas unit', new Date (2009,1,1), 9, 8, 125, 'Animal Production and Health'],   
            ['Establishment of bio gas unit', new Date (2009,2,1), 14, 9, 125, 'Animal Production and Health'],   
            ['Establishment of bio gas unit', new Date (2009,3,1), 20, 20, 125, 'Animal Production and Health'],   
            ['Establishment of bio gas unit', new Date (2009,4,1), 65, 40, 125, 'Animal Production and Health'],   
            ['Establishment of bio gas unit', new Date (2009,5,1), 80, 70, 125, 'Animal Production and Health'],       
          ]); 
          // secondary education
          data.addRows([   
            ['Renovation of schools', new Date (2009,0,1), 2, 4, 25, 'Secondary Education'],   
            ['Renovation of schools', new Date (2009,1,1), 24, 12, 25, 'Secondary Education'],   
            ['Renovation of schools', new Date (2009,2,1), 34, 19, 25, 'Secondary Education'],   
            ['Renovation of schools', new Date (2009,3,1), 60, 25, 25, 'Secondary Education'],   
            ['Renovation of schools', new Date (2009,4,1), 80, 45, 25, 'Secondary Education'],   
            ['Renovation of schools', new Date (2009,5,1), 92, 79, 25, 'Secondary Education'],       
          ]);   
           data.addRows([   
            ['Training for teachers', new Date (2009,0,1), 6, 3, 80, 'Secondary Education'],   
            ['Training for teachers', new Date (2009,1,1), 12, 8, 80, 'Secondary Education'],   
            ['Training for teachers', new Date (2009,2,1), 34, 23, 80, 'Secondary Education'],   
            ['Training for teachers', new Date (2009,3,1), 46, 40, 80, 'Secondary Education'],   
            ['Training for teachers', new Date (2009,4,1), 59, 69, 80, 'Secondary Education'],   
            ['Training for teachers', new Date (2009,5,1), 78, 88, 80, 'Secondary Education'],       
          ]);                     
          data.addRows([   
            ['Registration of students', new Date (2009,0,1), 12, 6, 25, 'Secondary Education'],   
            ['Registration of students', new Date (2009,1,1), 17, 8, 25, 'Secondary Education'],   
            ['Registration of students', new Date (2009,2,1), 34, 23, 25, 'Secondary Education'],   
            ['Registration of students', new Date (2009,3,1), 56, 39, 25, 'Secondary Education'],   
            ['Registration of students', new Date (2009,4,1), 58, 45, 25, 'Secondary Education'],   
            ['Registration of students', new Date (2009,5,1), 78, 67, 25, 'Secondary Education'],       
          ]);                                                                                                 
          data.addRows([   
            ['Construction of Libraries', new Date (2009,0,1), 6, 6, 150, 'Secondary Education'],   
            ['Construction of Libraries', new Date (2009,1,1), 12, 22, 150, 'Secondary Education'],   
            ['Construction of Libraries', new Date (2009,2,1), 29, 36, 150, 'Secondary Education'],   
            ['Construction of Libraries', new Date (2009,3,1), 56, 40, 150, 'Secondary Education'],   
            ['Construction of Libraries', new Date (2009,4,1), 60, 67, 150, 'Secondary Education'],   
            ['Construction of Libraries', new Date (2009,5,1), 90, 98, 150, 'Secondary Education'],       
          ]); 
          data.addRows([   
            ['Renovation of playgrounds', new Date (2009,0,1), 3, 6, 25, 'Secondary Education'],   
            ['Renovation of playgrounds', new Date (2009,1,1), 17, 19, 25, 'Secondary Education'],   
            ['Renovation of playgrounds', new Date (2009,2,1), 34, 23, 25, 'Secondary Education'],   
            ['Renovation of playgrounds', new Date (2009,3,1), 56, 44, 25, 'Secondary Education'],   
            ['Renovation of playgrounds', new Date (2009,4,1), 79, 65, 25, 'Secondary Education'],   
            ['Renovation of playgrounds', new Date (2009,5,1), 88, 80, 25, 'Secondary Education'],       
          ]);                                                                                                 
          data.addRows([   
            ['Constructing Computer Labs', new Date (2009,0,1), 6, 9, 150, 'Secondary Education'],   
            ['Constructing Computer Labs', new Date (2009,1,1), 12, 12, 150, 'Secondary Education'],   
            ['Constructing Computer Labs', new Date (2009,2,1), 34, 23, 150, 'Secondary Education'],   
            ['Constructing Computer Labs', new Date (2009,3,1), 56, 40, 150, 'Secondary Education'],   
            ['Constructing Computer Labs', new Date (2009,4,1), 60, 56, 150, 'Secondary Education'],   
            ['Constructing Computer Labs', new Date (2009,5,1), 78, 67, 150, 'Secondary Education'],       
          ]);  
          // public service
          data.addRows([   
            ['Re-Employment of retired officers', new Date (2009,0,1), 12, 6, 25, 'Public Service Establishment'],   
            ['Re-Employment of retired officers', new Date (2009,1,1), 17, 8, 25, 'Public Service Establishment'],   
            ['Re-Employment of retired officers', new Date (2009,2,1), 34, 23, 25, 'Public Service Establishment'],   
            ['Re-Employment of retired officers', new Date (2009,3,1), 56, 25, 25, 'Public Service Establishment'],   
            ['Re-Employment of retired officers', new Date (2009,4,1), 58, 34, 25, 'Public Service Establishment'],   
            ['Re-Employment of retired officers', new Date (2009,5,1), 78, 45, 25, 'Public Service Establishment'],       
          ]);                                                                                                 
          data.addRows([   
            ['Construction of Offices', new Date (2009,0,1), 6, 6, 150, 'Public Service Establishment'],   
            ['Construction of Offices', new Date (2009,1,1), 12, 22, 150, 'Public Service Establishment'],   
            ['Construction of Offices', new Date (2009,2,1), 29, 36, 150, 'Public Service Establishment'],   
            ['Construction of Offices', new Date (2009,3,1), 56, 40, 150, 'Public Service Establishment'],   
            ['Construction of Offices', new Date (2009,4,1), 60, 45, 150, 'Public Service Establishment'],   
            ['Construction of Offices', new Date (2009,5,1), 70, 48, 150, 'Public Service Establishment'],       
          ]); 
          data.addRows([   
            ['Repairs to state vehicles', new Date (2009,0,1), 3, 15, 25, 'Public Service Establishment'],   
            ['Repairs to state vehicles', new Date (2009,1,1), 17, 19, 25, 'Public Service Establishment'],   
            ['Repairs to state vehicles', new Date (2009,2,1), 34, 23, 25, 'Public Service Establishment'],   
            ['Repairs to state vehicles', new Date (2009,3,1), 56, 44, 25, 'Public Service Establishment'],   
            ['Repairs to state vehicles', new Date (2009,4,1), 79, 50, 25, 'Public Service Establishment'],   
            ['Repairs to state vehicles', new Date (2009,5,1), 79, 52, 25, 'Public Service Establishment'],       
          ]);                                                                                                 
          data.addRows([   
            ['Inter office communication', new Date (2009,0,1), 6, 9, 150, 'Public Service Establishment'],   
            ['Inter office communication', new Date (2009,1,1), 12, 12, 150, 'Public Service Establishment'],   
            ['Inter office communication', new Date (2009,2,1), 34, 23, 150, 'Public Service Establishment'],   
            ['Inter office communication', new Date (2009,3,1), 49, 40, 150, 'Public Service Establishment'],   
            ['Inter office communication', new Date (2009,4,1), 55, 42, 150, 'Public Service Establishment'],   
            ['Inter office communication', new Date (2009,5,1), 80, 45, 150, 'Public Service Establishment'],       
          ]);                      
          var motionchart = new google.visualization.MotionChart(
              document.getElementById('visualization'));
          //var options = {"xZoomedIn":false,"dimensions":{"iconDimensions":["dim0"]},"iconType":"BUBBLE","showTrails":true,"uniColorForNonSelected":false,"yLambda":1,"duration":{"multiplier":1,"timeUnit":"D"},"yZoomedDataMax":98,"sizeOption":"4","xZoomedDataMin":2,"yZoomedDataMin":3,"yAxisOption":"3","stateVersion":3,"xAxisOption":"2","playDuration":15,"iconKeySettings":[],"colorOption":"5","orderedByX":false,"nonSelectedAlpha":0.4,"xZoomedDataMax":92,"orderedByY":false,"xLambda":1,"yZoomedIn":false,"time":"2009-06-01"};
          var options ={    'width':650, 
                            'height':500, 
                            'showXMetricPicker':true, 
                            'showYMetricPicker':true, 
                            'showXScalePicker':false, 
                            'showYScalePicker':false,
                            'showAdvancedPanel':false,
                            'time':'2009-05-01'
                            };
          motionchart.draw(data, options);
    }
    

    google.setOnLoadCallback(drawVisualization);